package com.pages;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;

public class somethingActivity extends Activity implements OnClickListener {

	public Context pxt = this;
	
	public void onCreate(Bundle savedInstanceState){
		 super.onCreate(savedInstanceState);
	     setContentView(R.layout.main);
	     Button home = (Button)findViewById(R.id.home);
	     home.setOnClickListener(this);
	     pxt = this;
	     
	     Bundle bundle = getIntent().getExtras();
	     
	     String string = bundle.getString("name");
	     
	     Toast.makeText(getApplicationContext(), string, Toast.LENGTH_LONG);
	}
        
	public void onClick(View V) {
		Intent intent = new Intent(pxt, PagesActivity.class);
		pxt.startActivity(intent);
	}
}
